package cn.edu.scau.cmi.zeyang.composite.consistent;

import java.util.List;

public class ConsistentPerson extends ConsistentMember {

	public ConsistentPerson(String name,ConsistentMember parent) {
		super(name,parent);
	}

	@Override
	public ConsistentMember getParent() {
		return parent;
	}

	@Override
	public void addChild(ConsistentMember child) throws Exception {
		throw new Exception("个人没有孩子节点");
	}

	@Override
	public void deleteAll() throws Exception{
		throw new Exception("个人没有孩子节点");
	}

	@Override
	public List<ConsistentMember> getChildren() throws Exception{
		throw new Exception("个人没有孩子节点");
	}



}
